package org.xczy.boot.service;

import org.springframework.stereotype.Service;
import org.xczy.boot.entity.SysUser;
import org.xczy.boot.mapper.SysUserMapper;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysUserService {

  @Resource
  private SysUserMapper sysUserMapper;

  public SysUser getUserById(String id){
    return sysUserMapper.getUserById(id);
  }

  public List<SysUser> getUserAll(){
    return sysUserMapper.getUserAll();
  }

  public int setUsers(SysUser sysUser){
    return sysUserMapper.setUsers(sysUser);
  }
}
